package com.library.admin.modules.booktype.struct;

import org.mapstruct.*;
import com.library.admin.modules.booktype.entity.BookType;
import com.library.admin.modules.booktype.vo.BookTypeVO;
import com.library.admin.modules.booktype.bo.BookTypeInsert;
import com.library.admin.modules.booktype.bo.BookTypeUpdate;

import java.util.List;

/**
 * 图书分类表(BookType)对象映射转换
 *
 * @author xyh
 * @since 2023-10-05
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface BookTypeStructMapper {

    BookType updateToBookType(BookTypeUpdate update);

    BookType insertToBookType(BookTypeInsert insert);

    BookTypeVO bookTypeToBookTypeVO(BookType bookType);

    List<BookTypeVO> bookTypeToTypeListVO(List<BookType> list);

}

